# Contributor: Roberto Oliveira <robertoguimaraes8@gmail.com>
# Maintainer: Roberto Oliveira <robertoguimaraes8@gmail.com>
pkgname=sc-im
pkgver=0.7.0
pkgrel=1
pkgdesc="SC-IM is a spreadsheet program that is based on SC"
url="https://github.com/andmarti1424/sc-im"
arch="all"
license="BSD-4-Clause"
makedepends="bison ncurses-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/andmarti1424/sc-im/archive/v$pkgver.tar.gz"
options="!check"
builddir="$srcdir/$pkgname-$pkgver/src"

build() {
	make
}

check() {
	./scim --version > /dev/null
}

package() {
	make install DESTDIR="$pkgdir"
	mv -f "$pkgdir"/usr/local/bin "$pkgdir"/usr/bin
	mv -f "$pkgdir"/usr/local/share "$pkgdir"/usr/share
}

sha512sums="47bc02d4b698c30a3144733216cfdf57daafb4115e5d49774104c4fedbd22f1ab7e491e1fc16683273c8c5e8820f6caf2389223c4789b9e3f777d57528b76f1b  sc-im-0.7.0.tar.gz"
